//
//  UITextView+inputAccessry.h
//

#import <UIKit/UIKit.h>

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wstrict-prototypes"
typedef void(^TextViewDidChange)();
typedef void(^TextViewDidEndEditing)();

#pragma clang diagnostic pop

@interface UITextView (inputAccessry)

@property (strong, nonatomic) IBInspectable NSString * placeholder;

@property (strong, nonatomic) UIColor * placeholderColor;

@property (weak, nonatomic) UIView * pointView;

@property (weak, nonatomic) UIView * contentOffsetView;

@property (strong, nonatomic) NSNumber * initialPosition;

@property (assign, nonatomic) NSNumber * maxLength;

@property (assign, nonatomic) NSNumber * oldStartPosition;

@property (assign, nonatomic) NSNumber * space;

@property (copy, nonatomic) TextViewDidChange textViewDidChange;

@property (copy, nonatomic) TextViewDidEndEditing textViewDidEndEdit;

- (void)setShowCustomInputAccessry:(BOOL)showCustomInputAccessry;

- (void)addObserverKeyboard:(UIView *)pointView contentOffsetView:(UIView *)contentOffsetView;

- (void)removeObserverKeyboard;

- (void)addObserverTextViewDidChange;

- (NSInteger)numberOfLines;

- (NSInteger)countingHardLineBreaks;

- (void)updateContent;

@end
